home *** CD-ROM | disk | FTP | other *** search
/ BUG 1 / BUGCD1996_0708.ISO / pc / util / minilin / minilin.exe / SBIN / EXPLODEP.{_7 < prev    next >
Text File  |  1994-05-25  |  720b  |  26 lines

  1. #!/bin/sh
  2. if [ $# = 0 ]; then
  3.  cat << EOF
  4. Usage: explodepkg package_name [package_name2, ...]
  5.  
  6. Explodes a Slackware compatible software package (or any tar+gzip archive) in
  7. the current directory.  Equivalent to (for each package listed):
  8.  
  9.    ( umask 000 ; tar xzvf package_name )
  10.  
  11. Note: This should only be used for debugging or examining packages, not for 
  12. installing them. It doesn't execute installation scripts or update the package
  13. indexes in /var/adm.
  14.  
  15. EOF
  16. fi
  17. for PKG in $* ; do
  18.  echo "Exploding package $PKG in current directory:"
  19.  ( umask 000 ; tar xzvf $PKG )
  20.  if [ -r install/doinst.sh ]; then
  21.   echo
  22.   echo "An installation script was detected in ./install/doinst.sh, but"
  23.   echo "was not executed."
  24.  fi
  25. done
  26.